package com.usooft.metaTalent.core.system.service;

import com.usooft.framework.core.query.Page;
import com.usooft.metaTalent.core.system.entity.Dict;
import com.usooft.metaTalent.core.system.query.DictQuery;
import com.usooft.metaTalent.core.system.wrapper.DictWrapper;
import java.util.List;
import java.util.Optional;
import java.lang.Long;

public interface DictService {

    // region 自动生成
    Dict get(Long id);

    Optional<Dict> find(Long id);

    List<DictWrapper> list(DictQuery query);

    Page<DictWrapper> page(DictQuery query);

    int count(DictQuery.Filter filter);
    // endregion

    Dict create(String name, String description);

    void edit(Dict dict, String name, String description);

    Optional<? extends Dict> findByName(String name);
}